<?php foreach ($news_list as $news): ?>
  <div class="news">
    <h2>
      <?php echo $news->getBolaoCategory()->getName() ?>
      <?php
        if ($news->hasBolaoSubcategory())
          echo ' ('.$news->getBolaoSubcategory()->getName().') - ';
        else
          echo ' - ';
      ?>
      <?php echo $news->getSummary() ?>
    </h2>
  <?php if($news->canEdit($sf_user)): ?>
    <div class="right-corner"><a class="newslist_btn" href="<?php echo url_for('news_edit',$news) ?>">Editar</a></div>
  <?php endif; ?>
    <div class="posted-by">Posted by: <?php echo $news->getCreator() ?></div>
    <p><?php echo $news->getDescription() ?></p>
  </div>
<?php endforeach; ?>
